import Vue from 'vue'
import Vuex from 'vuex'
import login from '../store/Login'
import cart from './cart.js'

Vue.use(Vuex)

export default new Vuex.Store({
	state:{
		routerFalg:false,
		routelist:['/','/about','/liset','/my']
	},
	mutations:{
		showRuter(state,routeAddress){
			console.log(routeAddress)
			state.routerFalg=state.routelist.some((item,index)=>{
				return item ===routeAddress
			})
		}	
		},
  modules: {
    login,
	cart
  }
})
